package com.avic.rong.api.increase_tp;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

//添加赠票资质

public class IncreasetpApi extends BaseApi {

    private String token;
    private String companyName;
    private String identificationNumber;
    private String regAddress;
    private String regMobile;
    private String bank;
    private String blankNo;


    public IncreasetpApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    public void setArgument(String token,String companyName,String identificationNumber,String regAddress,String regMobile,String bank,String blankNo){
        this.token = token;
        this.companyName = companyName;
        this.identificationNumber = identificationNumber;
        this.regAddress = regAddress;
        this.regMobile = regMobile;
        this.bank = bank;
        this.blankNo = blankNo;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.increase_Tp(token,companyName,identificationNumber,regAddress,regMobile,bank,blankNo);
    }

}
